﻿using System;
using System.Threading.Tasks;
using TianShu.TenantManagement.Service.Abstracts.TenantService.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace TianShu.TenantManagement
{
    public interface ITenantAppService : ICrudAppService<TenantDto, Guid, TenantCreateDto, TenantUpdateDto>
    {
        Task<ResultDto<TenantDto>> GetByCodeAsync(string code);
        Task<ResultDto<object>> GetDefaultConnectionStringAsync(Guid id);

        Task<ResultDto<bool>> UpdateDefaultConnectionStringAsync(Guid id, TenantConnectionStringUpdateInput input);

        Task<ResultDto<bool>> DeleteDefaultConnectionStringAsync(Guid id);
    }
}
